FROM registry.wang-guanjia.com:5000/tomcat:7-jre8
VOLUME /usr/local/tomcat/logs
RUN rm -rf /usr/local/tomcat/webapps/*
ADD conf /usr/local/tomcat/conf
ADD dubbo-admin.war /usr/local/tomcat/webapps
COPY dubbo.properties /root/dubbo.properties
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
CMD ["catalina.sh", "run"]